home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 1865 / 1865.xpi / chrome / adblockplus.jar / content / ui / utils.js < prev   
Text File  |  2010-01-07  |  1KB  |  45 lines

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Version: MPL 1.1
  3.  *
  4.  * The contents of this file are subject to the Mozilla Public License Version
  5.  * 1.1 (the "License"); you may not use this file except in compliance with
  6.  * the License. You may obtain a copy of the License at
  7.  * http://www.mozilla.org/MPL/
  8.  *
  9.  * Software distributed under the License is distributed on an "AS IS" basis,
  10.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11.  * for the specific language governing rights and limitations under the
  12.  * License.
  13.  *
  14.  * The Original Code is Adblock Plus.
  15.  *
  16.  * The Initial Developer of the Original Code is
  17.  * Wladimir Palant.
  18.  * Portions created by the Initial Developer are Copyright (C) 2006-2009
  19.  * the Initial Developer. All Rights Reserved.
  20.  *
  21.  * Contributor(s):
  22.  *
  23.  * ***** END LICENSE BLOCK ***** */
  24.  
  25. const Cc = Components.classes;
  26. const Ci = Components.interfaces;
  27. const Cr = Components.results;
  28. const Cu = Components.utils;
  29.  
  30. const abp = Components.classes["@mozilla.org/adblockplus;1"].createInstance().wrappedJSObject;
  31. const prefs = abp.prefs;
  32. const filterStorage = abp.filterStorage;
  33. const synchronizer = abp.synchronizer;
  34.  
  35. // Make sure to initialize preferences if they aren't at this point (Fennec)
  36. prefs.init();
  37.  
  38. /**
  39.  * Shortcut for document.getElementById(id)
  40.  */
  41. function E(id)
  42. {
  43.     return document.getElementById(id);
  44. }
  45.